#include "CSerialPortGlobal.h"

const std::map<int,std::string>  SerialPortErrorMap={
    {SerialPortError::EmptyItem,""},
    {SerialPortError::SystemError,"system error"},
    {SerialPortError::NoError,"no error occurred"},
    {SerialPortError::DeviceNotFoundError,"device not found"},
    {SerialPortError::PermissionError,"permission error"},
    {SerialPortError::OpenError,"open error"},
    {SerialPortError::ParityError,"parity error"},
    {SerialPortError::FramingError,"framing error"},
    {SerialPortError::BreakConditionError,"break condition error"},
    {SerialPortError::WriteError,"write error"},
    {SerialPortError::ReadError,"read error"},
    {SerialPortError::ResourceError,"resource error"},

    {SerialPortError::UnsupportedOperationError,"unsupported operation error"},
    {SerialPortError::UnknownError,"unknown error"},
    {SerialPortError::TimeoutError,"timeout error"},
    {SerialPortError::NotOpenError,"not open serial port error"},
    {SerialPortError::InvalidParameterError,"invalid parameter error"}
};
